//
//  KKBLEService.h
//
//  Created by zorro on 2017/11/13.
//  Copyright © 2017年 zorro. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "KKBLEType.h"
#import "KKBLESend.h"
#import "KKBLEAccept.h"

#define KK_BLEService [KKBLEService sharedInstance]
#define KK_BLESend    [KKBLEService sharedInstance].send
#define KK_BLEAccept  [KKBLEService sharedInstance].accept

@interface KKBLEService : NSObject<CBPeripheralDelegate>

@property (nonatomic, strong) CBPeripheral *peripheral;
@property (nonatomic, strong) KKBLESend    *send;
@property (nonatomic, strong) KKBLEAccept  *accept;
// 找到设备的所有特征后发出信号
@property (nonatomic, strong) KKBLEUpdateBlock updateModelStatus;
@property (nonatomic, assign) BOOL isFoundChar;

AS_SINGLETON(KKBLEService)
- (void)senderDataToPeripheral:(NSData *)data;
- (void)senderDataToPeripheral64:(NSData *)data;
- (void)senderDataToPeripheralC1:(NSData *)data;

// 图片透传数据发送 2019.05.07
- (void)senderSpeedDataToPeripheral:(NSData *)data;

@end

